#ifndef _DEVICE_SPI_H_
#define _DEVICE_SPI_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "driver/spi_master.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "../LOG.h"
#include "../Product_Config.h"

#define HSPI_HOST2 SPI2_HOST
#define HSPI_HOST3 SPI3_HOST

#define PIN_NUM_MOSI1 12 //1号位灯带引脚 70颗
#define PIN_NUM_MOSI2 32 //1号位灯带引脚 70颗
#define TH           0xFC //11111100
#define TL          0XC0 //11000000

extern QueueHandle_t spi_queue_handle;
extern QueueHandle_t spi2_queue_handle;
void device_spi1_init(void);
void device_spi2_init(void);
void driver_spi_total_init(void);

#endif